<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title></title>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <link rel="stylesheet" href="${ctx}/static/timeline/css/animate.min.css"/>
    <link rel="stylesheet" href="${ctx}/static/timeline/css/index.css"/>
</head>
<body>
<audio src="http://huar.oss-cn-shenzhen.aliyuncs.com/message.mp3" hidden="true" autoplay="autoplay"></audio>
<!--page-home-->
<div id="main">
        <div id="center">
            <img src="${ctx}/static/timeline/img/msg.png" alt="" class="msg">
        </div>
        <div id="footer">
            <img src="${ctx}/static/timeline/img/hdljs.png" alt="" class="hdljs">
        </div>
</div>
<div id="main1">
	<div id="yuan" class="yuan">
		<div id="imgs">
			<img id="yuan1" src="${ctx}/static/timeline/img/yuan.png"/>
			<img id="yuan2" src="${ctx}/static/timeline/img/yuan.png"/>
			<img id="yuan3" src="${ctx}/static/timeline/img/yuan.png"/>
			<img id="yuan4" src="${ctx}/static/timeline/img/yuan.png"/>
		</div>
		<div id="texts">
			<span>2</span>
			<span>4</span>
			<span>2</span>
			<span>4</span>
		</div>
	</div>
	<div class="cli">
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_03.png" />
		<img id="mima1" onclick="mima(2);" src="${ctx}/static/timeline/img/anniu_04_1.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_05.png" />
		<img id="mima2" onclick="mima(4);" src="${ctx}/static/timeline/img/anniu_07.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_08.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_09.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_10.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_11.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_12.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_13.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_14.png" />
		<img onclick="mima(0);" src="${ctx}/static/timeline/img/anniu_15.png" />
	</div>
</div>
<div id="main2">
	<div class="bt" onclick="timeline();"></div>
</div>
<div id="main3">
	<div style="position: relative;width: 100%;margin: 0 auto;">
		<img src="${ctx}/static/timeline/img/head.jpg" width="100%"/>
	</div>
	<div style="position: relative;">
		<img style="float: right;margin-right: 10px;margin-top: -60px;" src="${headimgurl}" width="80px"/>
		<span style="color: white;float: right;margin-right: 10px;margin-top: -30px;">${nickName}</span>
	</div>
	<div style="clear: all;"></div>
	<!-- --------------runtu----------------------->
	<div style="position:relative;width:100%;margin-top: 60px;border-top: solid #FFFFFF 1px;">
		<div class="news"><img src="${ctx}/static/timeline/img/head1.jpg" width="48px"></div>
		<div class="news1">
			<div class="nickname">闰土夫妇</div>
			<div class="margintop8 words">太阳女神（也可称作喜神）发光啦！带上我们家杰锅参加“寻找城市代言家“活动，我们成了代言人之后，各位是想次火锅还是想次米粉呢！😆😆😆</div>
			<div class="margintop10"><img src="${ctx}/static/timeline/img/pic1.jpg" width="200px"/></div>
			<div>
				<div class="time">1分钟前</div>
				<div class="talk"><img src="${ctx}/static/timeline/img/talk.png"></div>
			</div>
			<div style="clear: both;"></div>
			<div class="pinglun">
				<div style="color: #51607f;font-size: 14px;font-weight: 400;border-bottom: solid #E3E3E3 1px;">♡炅炅,嘉嘉,昕昕,海涛,小S,岳云鹏,朱亚文,佟丽娅,邓超</div>
				<div>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">炅炅：</span>
					<span style="font-size: 14px;line-height: 16px;">居然靠奖品来当诱饵，不要带坏了我们家小杰！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">海涛：</span>
					<span style="font-size: 14px;line-height: 16px;">娜姐，火锅是要次几顿呀？</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">${nickName}：</span>
					<span style="font-size: 14px;line-height: 16px;">娜姐，票已投，奖品快拿来，早生贵子！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">子怡：</span>
					<span style="font-size: 14px;line-height: 16px;">我也好想参加这个活动呀~不过可惜我的music king也不是成都人，不然刚好可以当做给宝宝的见面礼。</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">Ada：</span>
					<span style="font-size: 14px;line-height: 16px;">本宫是不是也可以参加呀！我老公辣么帅，肯定能超过你们的！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">涵哥：</span>
					<span style="font-size: 14px;line-height: 16px;">活动是情感的升温，你们的感情也会越来越好。</span>
				</div>
			</div>
		</div>
	</div>
	<!-- --------------beib----------------------->
	<div style="position:relative;width:100%;margin-top: 20px;border-top: solid #f3f3f3 1px;">
		<div class="news"><img src="${ctx}/static/timeline/img/head2.jpg" width="48px"></div>
		<div class="news1">
			<div class="nickname">李贝贝</div>
			<div class="margintop8 words">给你们说了这么多年评书，你们也该给我扎场子了！这盘我带领我的评书家庭成员参加“寻找城市代言家”活动，评书艺术势必要发扬光大咯！票走起来！</div>
			<div class="margintop10"><img src="${ctx}/static/timeline/img/pic2.jpg" width="200px"/></div>
			<div>
				<div class="time">10分钟前</div>
				<div class="talk"><img src="${ctx}/static/timeline/img/talk.png"></div>
			</div>
			<div style="clear: both;"></div>
			<div class="pinglun">
				<div style="color: #51607f;font-size: 14px;font-weight: 400;border-bottom: solid #E3E3E3 1px;">♡谭警官,阿亮,尔康,大伟,小新,李贝贝死忠粉,俊余</div>
				<div>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">峰峰：</span>
					<span style="font-size: 14px;line-height: 16px;">贝贝怎么参加了这个活动？😄跟贝贝比还有点小羞涩呢！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">枫哥：</span>
					<span style="font-size: 14px;line-height: 16px;">你们几个参加活动的是要刷屏呀？</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">成都华润二十四城：</span>
					<span style="font-size: 14px;line-height: 16px;">李贝贝，快到碗里来！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">${nickName}：</span>
					<span style="font-size: 14px;line-height: 16px;">贝贝你是我永远的男神！你不代言谁代言！</span>
				</div>
			</div>
		</div>
	</div>
	<!-- --------------fengf----------------------->
	<div style="position:relative;width:100%;margin-top: 20px;border-top: solid #f3f3f3 1px;">
		<div class="news"><img src="${ctx}/static/timeline/img/head3.jpg" width="48px"></div>
		<div class="news1">
			<div class="nickname">峰峰</div>
			<div class="margintop8 words">成都代言人的正确打开方式是这样的！😄不服你们也来报名跟我PK呀~</div>
			<div class="margintop10"><img src="${ctx}/static/timeline/img/pic3.jpg" width="200px"/></div>
			<div>
				<div class="time">32分钟前</div>
				<div class="talk"><img src="${ctx}/static/timeline/img/talk.png"></div>
			</div>
			<div style="clear: both;"></div>
			<div class="pinglun">
				<div style="color: #51607f;font-size: 14px;font-weight: 400;border-bottom: solid #E3E3E3 1px;">♡晴,若昀,冬雨,陈明,凡先生,夫仔,Wen,采洁,Icon,阿娇,Ken,${nickName}</div>
				<div>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">昕昕：</span>
					<span style="font-size: 14px;line-height: 16px;">不敢投，不想上头条！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">多海：</span>
					<span style="font-size: 14px;line-height: 16px;">欧巴，fighting！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">${nickName}：</span>
					<span style="font-size: 14px;line-height: 16px;">我迪克~我是不会背叛我的男神李贝贝的！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">晨儿：</span>
					<span style="font-size: 14px;line-height: 16px;">国民晨妈妈已经给你投票了</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">三叔：</span>
					<span style="font-size: 14px;line-height: 16px;">不矫情的good boy，你一定会成功的。</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">李贝贝：</span>
					<span style="font-size: 14px;line-height: 16px;">你们这些女娃娃，说好的我才是你们永远的男神哒 </span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">幂幂：</span>
					<span style="font-size: 14px;line-height: 16px;">苏苏，好想让刘叔叔跟你比颜值比人气，可是刘叔叔都没有报名资格😭</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">大湿胸：</span>
					<span style="font-size: 14px;line-height: 16px;">你跟我一家吗？</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">峰峰</span><span style="font-size: 14px;line-height: 16px;">回复</span><span style="color: #51607f;font-size: 14px;font-weight: 400;">大湿胸：</span>
					<span style="font-size: 14px;line-height: 16px;">所有的CP都被我承包了！</span>
				</div>
			</div>
		</div>
	</div>
	<!-- --------------liangy----------------------->
	<div style="position:relative;width:100%;margin-top: 20px;border-top: solid #f3f3f3 1px;">
		<div class="news"><img src="${ctx}/static/timeline/img/head4.jpg" width="48px"></div>
		<div class="news1">
			<div class="nickname">靓颖</div>
			<div class="margintop8 words">参加这个活动，是因为我即将组建一个新家庭，希望能跟所有人分享我的幸福！也希望你们能投票支持一下我们@Michael冯 </div>
			<div class="margintop10"><img src="${ctx}/static/timeline/img/pic4.jpg" width="200px"/></div>
			<div>
				<div class="time">56分钟前</div>
				<div class="talk"><img src="${ctx}/static/timeline/img/talk.png"></div>
			</div>
			<div style="clear: both;"></div>
			<div class="pinglun">
				<div style="color: #51607f;font-size: 14px;font-weight: 400;border-bottom: solid #E3E3E3 1px;">♡ Michael 冯,Chris Lee, AB,渤哥,大鹏,笔笔,杰哥,cindy妈妈,锐哥</div>
				<div>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">${nickName}：</span>
					<span style="font-size: 14px;line-height: 16px;">海豚公举，女神，黑凤梨！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">大左：</span>
					<span style="font-size: 14px;line-height: 16px;">姐们，祝福！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">大大：</span>
					<span style="font-size: 14px;line-height: 16px;">我是伴娘，我是伴娘，我是伴娘，重要的话说三遍！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">Michael 冯：</span>
					<span style="font-size: 14px;line-height: 16px;">😘全世界都会祝福我们的！Honey！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">炅炅：</span>
					<span style="font-size: 14px;line-height: 16px;">靓靓加油。</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">靓颖</span><span style="font-size: 14px;line-height: 16px;">回复</span><span style="color: #51607f;font-size: 14px;font-weight: 400;">大大：</span>
					<span style="font-size: 14px;line-height: 16px;">别废话了，快去投票！</span>
				</div>
			</div>
		</div>
	</div>
	<!-- --------------jiani----------------------->
	<div style="position:relative;width:100%;margin-top: 20px;border-top: solid #f3f3f3 1px;">
		<div class="news"><img src="${ctx}/static/timeline/img/head5.jpg" width="48px"></div>
		<div class="news1">
			<div class="nickname">嘉倪</div>
			<div class="margintop8 words">买先生和逗比小公举，幸福必然要分享给你们啦！华润二十四城“城市代言家“，我们也要争取一下啦~么么哒</div>
			<div class="margintop10"><img src="${ctx}/static/timeline/img/pic5.jpg" width="200px"/></div>
			<div>
				<div class="time">1小时前</div>
				<div class="talk"><img src="${ctx}/static/timeline/img/talk.png"></div>
			</div>
			<div style="clear: both;"></div>
			<div class="pinglun">
				<div style="color: #51607f;font-size: 14px;font-weight: 400;border-bottom: solid #E3E3E3 1px;">♡ Sam买先森,岚,中信,剑锋,孔先生,Kiko,${nickName}</div>
				<div>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">Sam买先森：</span>
					<span style="font-size: 14px;line-height: 16px;">小公举，要低调！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">嘉倪</span><span style="font-size: 14px;line-height: 16px;">回复</span><span style="color: #51607f;font-size: 14px;font-weight: 400;">Sam买先森：</span>
					<span style="font-size: 14px;line-height: 16px;">我是傲娇小公举，么么哒！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">云帆：</span>
					<span style="font-size: 14px;line-height: 16px;">紫菱，你不爱我了吗？</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">楚濂：</span>
					<span style="font-size: 14px;line-height: 16px;">紫菱爱的人一直都是我。对么，小黄鸭。</span>
				</div>
			</div>
		</div>
	</div>
	<!-- --------------junyi----------------------->
	<div style="position:relative;width:100%;margin-top: 20px;border-top: solid #f3f3f3 1px;">
		<div class="news"><img src="${ctx}/static/timeline/img/head6.jpg" width="48px"></div>
		<div class="news1">
			<div class="nickname">隽逸</div>
			<div class="margintop8 words">黑是黑，有性格！代言人当然要不一样的肤色啦！各位宝宝给我投个票呗~</div>
			<div class="margintop10"><img src="${ctx}/static/timeline/img/pic6.jpg" width="200px"/></div>
			<div>
				<div class="time">2小时前</div>
				<div class="talk"><img src="${ctx}/static/timeline/img/talk.png"></div>
			</div>
			<div style="clear: both;"></div>
			<div class="pinglun">
				<div style="color: #51607f;font-size: 14px;font-weight: 400;border-bottom: solid #E3E3E3 1px;">♡ 那姐,哈林,欢哥,红姐,马苏</div>
				<div>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">那姐：</span>
					<span style="font-size: 14px;line-height: 16px;">加油吧，小宝贝！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">隽逸</span><span style="font-size: 14px;line-height: 16px;">回复</span>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">那姐：</span>
					<span style="font-size: 14px;line-height: 16px;">谢了，那姐😘</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">哈林：</span>
					<span style="font-size: 14px;line-height: 16px;">躁起来吧！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">吴莫愁：</span>
					<span style="font-size: 14px;line-height: 16px;">嘿嘿嘿黑妞~票已投，不用谢！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">超哥：</span>
					<span style="font-size: 14px;line-height: 16px;">大家好，我是隽逸！在此我要感谢我永远的男神超哥给我投票！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">包包：</span>
					<span style="font-size: 14px;line-height: 16px;">票已投，五块钱红包请备好。</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">欢哥：</span>
					<span style="font-size: 14px;line-height: 16px;">黑妞，成都 Want you！</span>
				</div>
			</div>
		</div>
	</div>
	<!-- --------------huar----------------------->
	<div style="position:relative;width:100%;margin-top: 20px;border-top: solid #f3f3f3 1px;">
		<div class="news"><img src="${ctx}/static/timeline/img/headimg.jpg" width="48px"></div>
		<div class="news1">
			<div class="nickname">成都华润二十四城</div>
			<div class="margintop8 words">11月18日，华润二十四城“城市代言家”活动温暖开启，秀出你的家庭幸福吧！报名即送50元加油卡，晋级的家庭还可免费拍摄精美家庭写真一套、200元万象城购物卡和5000元旅游基金。😄投票也有奖！电影票、泰香米等你来领！100%中奖噢~</div>
			<div class="margintop10"><img src="${ctx}/static/timeline/img/pic.jpg" width="200px"/></div>
			<div>
				<div class="time">3小时前</div>
				<div class="talk"><img src="${ctx}/static/timeline/img/talk.png"></div>
			</div>
			<div style="clear: both;"></div>
			<div class="pinglun">
				<div style="color: #51607f;font-size: 14px;font-weight: 400;border-bottom: solid #E3E3E3 1px;">♡ 闰土夫妇，李贝贝，峰峰，嘉倪，靓颖</div>
				<div>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">闰土夫妇：</span>
					<span style="font-size: 14px;line-height: 16px;">准备好了！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">峰峰：</span>
					<span style="font-size: 14px;line-height: 16px;">感觉我要赢了！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">李贝贝：</span>
					<span style="font-size: 14px;line-height: 16px;">散打评书我行，好房子华润二十四城行！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">幂幂：</span>
					<span style="font-size: 14px;line-height: 16px;">不是成都人能参加吗？</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">成都华润二十四城</span><span style="font-size: 14px;line-height: 16px;">回复</span>
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">幂幂：</span>
					<span style="font-size: 14px;line-height: 16px;">只要生活在成都这个城市，业主、非业主均可参与哟~欢迎你和刘叔叔来成都！</span>
					<br />
					<span style="color: #51607f;font-size: 14px;font-weight: 400;">${nickName}：</span>
					<span style="font-size: 14px;line-height: 16px;">已报名，我们也要为成都代言！油卡等着我抱你回家~</span>
				</div>
			</div>
		</div>
	</div>
	<!-- --------------huar----------------------->
	<div style="position:relative;width:100%;margin-top: 20px;border-top: solid #f3f3f3 1px;">	</div>
</div>
<script src="${ctx}/static/timeline/js/touch.js"></script>
<script src="${ctx}/static/timeline/js/jquery-1.8.0.min.js"></script>
<script src="${ctx}/static/timeline/js/para.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	console.log(location.href.split('#')[0]);
	var thisPageUrl = location.href.split('#')[0];
	
	$.ajax({ url: "${ctx}/jsapi/ajax/sign", 
		 type: "POST",
		 data:{url:""+thisPageUrl},
		 dataType: "json",
		 //sync: true,
		 cache: false,//解决三星手机，缓存后不提交请求
		 success: function(data){
			 console.log(data);
			if(data.success){
				configWeiXin(data.appId,data.timestamp,data.nonceStr,data.signature);
				//regiestWxJsApi();
			}else{
				console.log("配置weixin jsapi失败");
			}
			
		 },
	  	 error: function(XMLHttpRequest, textStatus, errorThrown){
	      	console.log(XMLHttpRequest.responseText);
		 }
	});
});
function configWeiXin(appId, timestamp, nonceStr, signature){
	   wx.config({
	      debug: false,// 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
	      appId: appId,
	      timestamp: timestamp,
	      nonceStr: nonceStr,
	      signature: signature,
	      jsApiList: [
	        'onMenuShareTimeline',
	        'onMenuShareAppMessage',
	        'onMenuShareQQ',
	        'onMenuShareWeibo'
	      ]
	  });
   }
   
wx.ready(function(){
	var myLink= "http://huarunapp.cn-hangzhou.aliapp.com/userInfo/timeline";
	var myTitle="寻找城市代言“家”";
   	var myDesc="寻找城市代言“家”，参与即送50元油卡，晋级还有5000元旅游基金";
   	var myImageUrl="${headimgurl}";
    // 1 监听“分享给朋友”，按钮点击、自定义分享内容及分享结果接口
    wx.onMenuShareAppMessage({
		title: myTitle,
		desc: myDesc,
		link: myLink,
		imgUrl: myImageUrl,
		type:'link',
		dataUrl:'',
		trigger: function (res) {
		  // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
		  //alert('用户点击发送给朋友');
		 // alert(myLink);
		},
		success: function (res) {
		  //alert('已分享');
		},
		cancel: function (res) {
		  //alert('已取消');
		},
		fail: function (res) {
		  //alert(JSON.stringify(res));
		}
    });
    
 	// 2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
	wx.onMenuShareTimeline({
		title: myTitle,
	    link: myLink,
	    imgUrl: myImageUrl,
	    trigger: function (res) {
	      // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
	      //alert('用户点击发送给朋友');
	    	//alert(myLink);
	    },
	    success: function (res) {
	      //alert('已分享');
	    },
	    cancel: function (res) {
	      //alert('已取消');
	    },
	    fail: function (res) {
	      //alert(JSON.stringify(res));
	    	alert("分享失败，请重新尝试！");
	    }
	  });
	
	// 3 监听“分享到QQ”按钮点击、自定义分享内容及分享结果接口
	wx.onMenuShareQQ({
		title: myTitle,
	    desc: myDesc,
	    link: myLink,
	    imgUrl: myImageUrl,
	    trigger: function (res) {
	      // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
	      //alert('用户点击发送给朋友');
	    },
	    success: function (res) {
	      //alert('已分享');
	    },
	    cancel: function (res) {
	      //alert('已取消');
	    },
	    fail: function (res) {
	      //alert(JSON.stringify(res));
	    	alert("分享失败，请重新尝试！");
	    }
	  });
	// 2.4 监听“分享到微博”按钮点击、自定义分享内容及分享结果接口
	wx.onMenuShareWeibo({
		title: myTitle,
	    desc: myDesc,
	    link: myLink,
	    imgUrl: myImageUrl,
	    trigger: function (res) {
	      // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
	      //alert('用户点击发送给朋友');
	    },
	    success: function (res) {
	      //alert('已分享');
	    },
	    cancel: function (res) {
	      //alert('已取消');
	    },
	    fail: function (res) {
	      //alert(JSON.stringify(res));
	    	alert("分享失败，请重新尝试！");
	    }
	  });
    // config信息验证后会执行ready方法，所有接口调用都必须在config接口获得结果之后，config是一个客户端的异步操作，所以如果需要在页面加载时就调用相关接口，则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口，则可以直接调用，不需要放在ready函数中。
});
wx.error(function(res){
	alert(res);
});

var i = 2;
var seq = 1;

function mima(n) {
	if (i == n) {
		$("#yuan").removeClass("animated shake");
		if (n == 2) {
			$("#mima1").attr("src", "${ctx}/static/timeline/img/anniu_04.png");
			$("#mima2").attr("src", "${ctx}/static/timeline/img/anniu_07_1.png");
			$("#yuan" + seq).attr("src", "${ctx}/static/timeline/img/yuan1.png");
			i = 4;
			seq++;
		} else {
			$("#mima1").attr("src", "${ctx}/static/timeline/img/anniu_04_1.png");
			$("#mima2").attr("src", "${ctx}/static/timeline/img/anniu_07.png");
			$("#yuan" + seq).attr("src", "${ctx}/static/timeline/img/yuan1.png");
			i = 2;
			seq++;
		}
	} else {
		$("#yuan").addClass("animated shake");
		seq = 1;
		i = 2;
		$("#mima1").attr("src", "${ctx}/static/timeline/img/anniu_04_1.png");
		$("#mima2").attr("src", "${ctx}/static/timeline/img/anniu_07.png");
		$("#yuan1").attr("src", "${ctx}/static/timeline/img/yuan.png");
		$("#yuan2").attr("src", "${ctx}/static/timeline/img/yuan.png");
		$("#yuan3").attr("src", "${ctx}/static/timeline/img/yuan.png");
		$("#yuan4").attr("src", "${ctx}/static/timeline/img/yuan.png");
	}
	if (seq == 5) {
		$("#main1").hide();
		$("#main2").show();
		var $body = $('body');
		document.title = '腾讯新闻';
		var $iframe = $('<iframe src="/favicon.ico"></iframe>').on('load', function() {
			setTimeout(function() {
				$iframe.off('load').remove()
			}, 0)
		}).appendTo($body);
	}
}
touch.on('#main', 'swiperight', function(ev) {
	$('#main').hide();
	$('#main1').show();
});

function timeline() {
	$("#main2").hide();
	var $body = $('body');
	document.title = '朋友圈';
	var $iframe = $('<iframe src="/favicon.ico"></iframe>').on('load', function() {
		setTimeout(function() {
			$iframe.off('load').remove()
		}, 0)
	}).appendTo($body);
	$("#main3").show();
}
</script>
</body>
</html>